Show AllShow All

HasAxis Property

Returns or sets which axes exist on the chart. Read/write Variant.

expression.HasAxis(Index1, Index2)

expression    Required. An expression that returns one of the objects in the Applies To list.

Index1   Optional XlAxisType. The type of axis.

Index2   Optional XlAxisGroup. The axis priority.

Remarks

Microsoft Graph may create or delete axes if you change the chart type or change the AxisGroup property.

Example

This example turns on the primary value axis.

myChart.HasAxis(xlValue, xlPrimary) = True